package cn.openea.perpartner.meily.web.service;

import cn.openea.perpartner.meily.web.entity.Article;
import cn.openea.perpartner.meily.web.entity.dto.SearchDto;
import cn.openea.perpartner.meily.web.entity.vo.ArticleSearchVo;
import cn.openea.perpartner.meily.web.entity.vo.ArticleVo;
import com.baomidou.mybatisplus.extension.service.IService;
import lombok.NonNull;

import java.util.List;

/**
 * @author rains
 * @since 2023-06-19 14:52
 */
public interface IArticleService extends IService<Article> {

    List<Article> selectList(ArticleSearchVo searchVo);

    boolean topArticle(@NonNull Long id);

    void updateArticle(@NonNull ArticleVo articleVo);

    void addArticle(@NonNull ArticleVo articleVo);

    boolean cancelTop(@NonNull Long id);

    Article findByTitle(String title);

    boolean shelfArticle(Long id);

    boolean downArticle(Long id);

    List<Article> getList(ArticleSearchVo searchVo);
}
